<html><head><title>ClosePreferences</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">ClosePreferences()</font></b></p>
<p><b>Syntax</b></p><blockquote>
<font color="#3A3966"><b>ClosePreferences</b></font>()</blockquote>

<b>Description</b><br><blockquote>

Closes a preference file previously opened with <a href="openpreferences.html">OpenPreferences()</a> or created with <a href="createpreferences.html">CreatePreferences()</a>. 

</blockquote><p><b>Parameters</b></p><blockquote>
None.


</blockquote><p><b>Return value</b></p><blockquote>
None.


</blockquote><p><b>Example</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <font color="#3A3966">; Open a preference file</font>
<font color="#3A3966">  OpenPreferences</font>(<font color="#924B72">#PB_Compiler_Home</font> +&quot;Examples\Sources\Data\test.pref&quot;)
  
  <font color="#3A3966">; Choose the group &quot;window&quot;</font>
<font color="#3A3966">  PreferenceGroup</font>(&quot;window&quot;)
  
  <font color="#3A3966">; Display the &quot;w&quot; key of this group</font>
<font color="#3A3966">  MessageRequester</font>(&quot;Info&quot;, &quot;w = &quot; +<font color="#3A3966"> ReadPreferenceLong </font>(&quot;w&quot;, 0))
  
  <font color="#3A3966">; Close the preference file</font>
<font color="#3A3966">  ClosePreferences</font>()
</font></pre>

</blockquote><p><b>See Also</b></p><blockquote>

<a href="createpreferences.html">CreatePreferences()</a>, <a href="openpreferences.html">OpenPreferences()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><a href="index.html">Preference Index</a> - <a href="createpreferences.html">CreatePreferences()</a> -><br><br>

</body></html>